﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Object One/Admin.Master" AutoEventWireup="true" CodeBehind="Branch.aspx.cs" Inherits="ProjectHK3.Object_One.Branch" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="text-align: center">

        <br />
        <br />
        <table style="width:65%;" align="center">
            <tr>
                <td style="text-align: left; " colspan="3">
                    <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="45pt" ForeColor="#FF6600" Text="๖ۣۜBranches ๖ۣۜManagement"></asp:Label></td>
            </tr>
            <tr>
                <td style="text-align: left; width: 131px">
                    &nbsp;</td>
                <td style="text-align: left; width: 235px">
                    &nbsp;</td>
                <td style="text-align: left">
                    &nbsp;</td>
            </tr>
            <tr>
                <td style="text-align: left; width: 131px">
                    &nbsp;</td>
                <td style="text-align: left; width: 235px">
                    &nbsp;</td>
                <td style="text-align: left">
                    &nbsp;</td>
            </tr>
            <tr>
                <td style="width: 131px; text-align: left">
                    <asp:Label ID="Label5" runat="server" Text="City:"></asp:Label>
                </td>
                <td style="width: 235px">
                    <asp:DropDownList ID="DropDownList1" runat="server" Width="209px">
                    </asp:DropDownList>
                </td>
                <td style="text-align: left">
                    <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Object One/images/1389547665_search.png" OnClick="ImageButton1_Click" />
                </td>
            </tr>
        </table>

        <br />
        <table style="width:65%;" align="center">
            <tr>
                <td style="text-align: left; ">
                    <asp:HyperLink ID="HyperLink2" runat="server" ForeColor="#FF6600" NavigateUrl="~/Object One/CreateBranch.aspx" Font-Bold="True" Font-Size="X-Large">Create New Branch</asp:HyperLink>
                </td>
                <td style="text-align: center">
                    <asp:Label ID="Label6" runat="server" Text="Total:" ForeColor="Blue"></asp:Label>
                    <asp:Label ID="Label7" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" PageSize="15" OnRowDeleting="GridView1_RowDeleting" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" CellPadding="4" ForeColor="#333333" GridLines="None">
                        <AlternatingRowStyle BackColor="White" />
                        <Columns>
                            <asp:BoundField DataField="BRANCH_CODE" HeaderText="BRANCH CODE" />
                            <asp:BoundField DataField="BRANCH_NAME" HeaderText="BRANCH NAME" />
                            <asp:BoundField DataField="BRANCH_PHONE" HeaderText="PHONE" />
                            <asp:TemplateField HeaderText="ACTION">
                                <ItemTemplate>
                                    <asp:LinkButton ID="_lbtDelete" runat="server" CommandArgument='<%# Eval("BRANCH_ID") %>' CommandName="DeleteBranch" OnClick="_lbtDelete_Click" OnClientClick="return confirm('Are you sure you want to delete this record ?')" OnCommand="_lbtDelete_Command" ToolTip="Delete Branch" CausesValidation="False">Remove</asp:LinkButton>
                                    &nbsp;&nbsp; &nbsp;
                                    &nbsp;
                                    <asp:LinkButton ID="_lbtViewDetails" runat="server" CommandArgument='<%# Eval("BRANCH_ID") %>' CommandName="ViewDetailsBranch" OnClick="_lbtViewDetails_Click" OnCommand="_lbtViewDetails_Command" ToolTip="View Account Details" CausesValidation="False">View Details</asp:LinkButton>
                                    &nbsp; &nbsp;&nbsp; &nbsp;<asp:LinkButton ID="_lbtViewEmployees" runat="server" CommandArgument='<%# Eval("BRANCH_ID") %>' CommandName="ViewEmployees" OnClick="_lbtViewEmployees_Click" OnCommand="_lbtViewEmployees_Command" ToolTip="View Account Details" CausesValidation="False">View Employees</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <EditRowStyle BackColor="#2461BF" />
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#EFF3FB" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#F5F7FB" />
                        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                        <SortedDescendingCellStyle BackColor="#E9EBEF" />
                        <SortedDescendingHeaderStyle BackColor="#4870BE" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:GridView ID="_grwAllEmployee" runat="server" AutoGenerateColumns="False" OnPageIndexChanging="_grwAllEmployee_PageIndexChanging" PageSize="15" CellPadding="4" ForeColor="#333333" GridLines="None">
                        <AlternatingRowStyle BackColor="White" />
                        <Columns>
                            <asp:BoundField DataField="FIRST_NAME" HeaderText="FIRST NAME" />
                            <asp:BoundField DataField="LAST_NAME" HeaderText="LAST NAME" />
                            <asp:BoundField DataField="PHONE_NUMBER" HeaderText="PHONE NUMBER" />
                            <asp:BoundField DataField="EMAIL" HeaderText="EMAIL" />
                        </Columns>
                        <EditRowStyle BackColor="#2461BF" />
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#EFF3FB" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#F5F7FB" />
                        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                        <SortedDescendingCellStyle BackColor="#E9EBEF" />
                        <SortedDescendingHeaderStyle BackColor="#4870BE" />
                    </asp:GridView>
                </td>
            </tr>
        </table>

    </div>
</asp:Content>
